package com.dhecp.project.purchase.mapper;


import com.dhecp.core.genericDao.GenericDao;

import com.dhecp.project.purchase.domain.PurchasingSupplier;

import java.util.List;
import java.util.Map;

public interface PurchasingSupplierMapper extends GenericDao<PurchasingSupplier, String> {

    /**
     * 查询
     * @param parems
     * @return List - PurchasingSupplier
     */
    List<PurchasingSupplier> findData(Map<String, Object> params);

    /**
     * 通过guid查询
     * @param guid 必要参数
     * @return PurchasingSupplier 实体
     */
    PurchasingSupplier findDataByGuid(Map<String, Object> params);

    /**
     * 新增
     * @param dataInfo 必要参数：PurchasingSupplier实体数据
     * @return
     */
    int insertData(PurchasingSupplier dataInfo);

    /**
     * 删除
     * @param dataInfo 必要参数：PurchasingSupplier实体数据
     * @return
     */
    int deleteData(PurchasingSupplier dataInfo);

    /**
     * 通过guid修改数据
     * @param dataInfo 必要参数：PurchasingSupplier实体数据
     * @return
     */
    int updateByGuid(PurchasingSupplier dataInfo);

    
}
